const seq = require('../../seq')
const {STRING, DECIMAL, TEXT, INTEGER} = require('../../types')

const UserInfo = seq.define('userInfo', {
  firstName: {
    type: STRING,
    comment: '姓'
  },
  lastName: {
    type: STRING,
    comment: '名'
  },
  email: {
    type: STRING,
    comment: '邮箱'
  },
  description: {
    type: TEXT,
    comment: '个人描述'
  },
  gender: {
    type: DECIMAL,
    defaultValue: 3,
    comment: '性别（1 男性，2 女性，3 保密）'
  },
  picture: {
    type: STRING,
    comment: '头像，图片地址'
  },
  city: {
    type: STRING,
    comment: '城市'
  },
  uid: {
    type: INTEGER,
    comment: '用户id'
  }
})

module.exports = UserInfo
